text/template/parse.item.pos (field)
26 uses
text/template/parse (current package)
lex.go#L17: pos Pos // The starting position, in bytes, of this item in the input string.
parse.go#L300: t.Root = t.newList(t.peek().pos)
parse.go#L351: list = t.newList(t.peekNonSpace().pos)
parse.go#L370: return t.newText(token.pos, token.val)
parse.go#L376: return t.newComment(token.pos, token.val)
parse.go#L399: return t.breakControl(token.pos, token.line)
parse.go#L401: return t.continueControl(token.pos, token.line)
parse.go#L418: return t.newAction(token.pos, token.line, t.pipeline("command", itemRightDelim))
parse.go#L456: pipe = t.newPipeline(token.pos, token.line, nil)
parse.go#L471: pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
parse.go#L475: pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
parse.go#L603: return t.newEnd(t.expect(itemRightDelim, "end").pos)
parse.go#L617: return t.newElse(peek.pos, peek.line)
parse.go#L620: return t.newElse(token.pos, token.line)
parse.go#L650: return t.newTemplate(token.pos, token.line, name, pipe)
parse.go#L669: return t.newTemplate(token.pos, token.line, name, pipe)
parse.go#L693: cmd := t.newCommand(t.peekNonSpace().pos)
parse.go#L731: chain := t.newChain(t.peek().pos, node)
parse.go#L772: return NewIdentifier(token.val).SetTree(t).SetPos(token.pos)
parse.go#L774: return t.newDot(token.pos)
parse.go#L776: return t.newNil(token.pos)
parse.go#L778: return t.useVar(token.pos, token.val)
parse.go#L780: return t.newField(token.pos, token.val)
parse.go#L782: return t.newBool(token.pos, token.val == "true")
parse.go#L784: number, err := t.newNumber(token.pos, token.val, token.typ)
parse.go#L796: return t.newString(token.pos, token.val, s)